//
//  UserInfo.swift
//  WeiBo test
//
//  Created by Aquarius_wing on 16/5/7.
//  Copyright © 2016年 Wing. All rights reserved.
//

import UIKit

class UserInfo: NSObject {
    var name:String?
    var id:NSNumber?
    //地理位置
    var location:String?
    //用户头像
    var avatar_large:String?
    //关注了多少人
    var friends_count:NSNumber?
    //是否关注我
    var follow_me:NSNumber?
    //创建时间
    var created_at:NSData?
    //粉丝数量
    var followers_count:NSNumber?
    
    init(dict : [String:AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
//        print(self)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    //要使打印该类为字符串
    override var description: String{
        let keys=["name","id","location","avatar_large","friends_count","follow_me","created_at","followers_count"]
        
        return dictionaryWithValuesForKeys(keys).description
    }
}
